package com.michael.study.arouter.network;

import android.util.Log;

import com.michael.study.network.NetWorkModule;

import okhttp3.Interceptor;

/**
 * Description:
 *
 * <p>Created by liuguoquan on 2020/8/5 21:01.
 */
public class ARouteApi extends NetWorkModule {

    private static volatile ARouteApi sInstance = null;

    public static ARouteApi getInstance() {
        if (sInstance == null) {
            synchronized (ARouteApi.class) {
                if (sInstance == null) {
                    Log.d("lgq", "ARouteApi getInstance: ");
                    return new ARouteApi();
                }
            }
        }

        return sInstance;
    }

    @Override
    protected Interceptor getInterceptor() {
        return null;
    }

    public static <T> T getService(Class<T> clz) {
        return getInstance().getRetrofit(clz).create(clz);
    }

    @Override
    public String getFactoryUrl() {
        return null;
    }

    @Override
    public String getTestUrl() {
        return null;
    }

    @Override
    public String getDevUrl() {
        return null;
    }
}
